package com.by.datasource.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 数据库链接
 *
 * @author YanBingHao
 * @since 2023/12/25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "by.datasource")
public class ByDatasourceProperties {

    private String url;

    private String userName;

    private String password;

    private String dbName;

    private Integer initialSize;

    private Integer maxActive;

    private Integer minIdle;

    private boolean keepAlive;

    private Integer maxWait;

    private Integer queryTimeout;

    private boolean dataPermission;

    private boolean dyTableName;

}
